package com.hxzon.aixzsecretary.net;

import java.net.ServerSocket;
import java.net.Socket;

public class FileServer extends Thread {
	public void run() {
		try {
			ServerSocket serverSocket = new ServerSocket(3002);
			while (true) {
				Socket socket = serverSocket.accept();
				new UserDialog(socket, "file");
				System.out.println("receive file");
			}
		} catch (Exception e) {
			System.out.println("file server wrong");
		}
	}
}